Release 10.1A: OpenEdge Data Management:
SQL Development


Triggers, stored procedures, and constraints

Triggers are identical to stored procedures in many respects. There are three main differences:

The automatic nature of triggers makes them well suited for enforcing referential integrity. In this regard they are like constraints, since both triggers and constraints can help ensure that a value stored in the foreign key of a table must either be null or be equal to some value in the matching unique or primary key of another table. However, triggers differ from constraints in the following ways:

The next section outlines some common uses for triggers.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095